package com.dys.designpattern.singleton;

/**
 * @author 田建松
 * @version V1.0.0
 * @description 6.单例模式-枚举
 * @date 2024/5/9
 * @since 1.0
 */
public enum EnumSingleton {

    INSTANCE;

    private Object data;

    public void setData(Object object) {
        this.data = data;
    }

    public Object getData() {
        return data;
    }

    public static EnumSingleton getInstance() {
        return INSTANCE;
    }
}
